let imgs = document.querySelector("img")
let titletext = document.querySelector(".titlename")

window.onload = function(){
    imgs.src = localStorage.getItem("imgurl")
    titletext.innerText = localStorage.getItem("name")
}

savebtn.addEventListener("click",function(){
    location="index.html"
})